package com.cyj.dream.admin.service.system;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cyj.dream.admin.model.request.SysOperationLogQueryRequest;
import com.cyj.dream.admin.model.system.SysOperationLog;
import com.cyj.dream.core.constant.pagemodel.PageParam;

/**
 * @Description:
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.core.service
 * @Author: ChenYongJia
 * @CreateTime: 2021-10-25 13:54
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
public interface SysOperationLogService {

    /**
     * 分页查询系统操作日志信息
     *
     * @param pageParam 分页参数以及入参
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dream.DreamChardonnay.model.system.SysOperationLog>
     * @date 2021/6/11 10:30
     * @author ChenYongJia
     * @version 1.0
     */
    IPage<SysOperationLog> list(PageParam<SysOperationLogQueryRequest> pageParam);

    /**
     * 添加系统操作日志
     * @param sysOperationLog
     * @return com.dream.DreamChardonnay.model.system.SysOperationLog
     * @date 2021/4/2 9:52
     * @author ChenYongJia
     * @version 1.0
     */
    boolean addOperationLog(SysOperationLog sysOperationLog);

    /**
     * 删除本月、本周、今天之前的所有操作记录
     *
     * @param type 删除的日期阶段
     * @return boolean
     * @date 2021/6/21 11:24
     * @author ChenYongJia
     * @version 1.0
     */
    boolean deleteOperationLog(Integer type);

}
